import styled from "styled-components";

export const PaginationWrap = styled.div`
  padding: 30px 0 30px 0;
  width: 100%;
  text-align: center;
  ::after {
    clear: both;
    overflow: hidden;
    content: "";
    display: block;
  }
  .anticon {
    background-image: none;
  }
  .ant-pagination-prev {
    width: 69px;
    padding-left: 22px;
    background: url(${require("@/assets/img/button.png").default}) no-repeat 0
      9999px;
    background-position: 0 -560px;
    height: 24px;
    line-height: 24px;
    color: #333;
    text-align: left;
    text-decoration: none;
    margin: 0 1px 0 2px;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 2px;
    vertical-align: middle;
    transition: none;
    :hover {
      background-position: 0 -590px;
    }
  }
  .ant-pagination-next {
    width: 69px;
    padding-left: 10px;
    background: url(${require("@/assets/img/button.png").default}) no-repeat 0
      9999px;
    background-position: -75px -560px;
    height: 24px;
    line-height: 24px;
    color: #333;
    text-align: left;
    text-decoration: none;
    margin: 0 1px 0 2px;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 2px;
    vertical-align: middle;
    transition: none;
    :hover {
      background-position: -75px -590px;
    }
  }
  .ant-pagination-item {
    border: none;
    margin-right: 0;
    a {
      height: 22px;
      padding: 0 8px;
      background-color: #fff;
      line-height: 22px;
      margin: 0 1px 0 2px;
      display: inline-block;
      border: 1px solid #ccc;
      border-radius: 2px;
      vertical-align: middle;
    }
  }
  .ant-pagination-item-active a {
    background: url(${require("@/assets/img/button.png").default}) no-repeat 0
      9999px;
    background-position: 0 -650px;
    border-color: #a2161b;
    color: #fff;
    cursor: default;
  }
`;
